package com.css.zfzx.sjcj.modules.app.repository;

import com.css.zfzx.sjcj.modules.app.entity.HddcVersionEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

/**
 * TODO
 *
 * @author 王昊杰
 * @version 1.0
 * @date 2021/5/28  15:15
 */

@Repository
public interface HddcAppRepository extends JpaRepository<HddcVersionEntity,String> {

    @Query(nativeQuery = true,value = "select * from hddc_version where platform = :platform")
    HddcVersionEntity getAppVersion(@Param("platform") String platform);
}
